学之思考试系统搭建

docker-compose.yml 文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#mkdir -p /data/test-xzs/{conf,data,logs,mysql}
#docker-compose -f test-xzs.yml up -d
#test-xzs.yml 配置文件如下
# docker run -d --name xzs --privileged -it -d -p 28000:8000 -v /etc/localtime:/etc/localtime:ro registry.cn-hangzhou.aliyuncs.com/mindskip/xzs:v3.5.0 /usr/sbin/init
version: "2"

services:
test-xzs:
image: registry.cn-hangzhou.aliyuncs.com/mindskip/xzs:v3.5.0
ports:
- "28000:8000"
- "28006:3306"
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /etc/localtime:/etc/localtime:ro
- /usr/local/xzs:/data/test-xzs/data
restart: always
container_name: test-xzs
networks:
test-net:
ipv4_address: 172.100.0.202
networks:
test-net:
external: true

sql 脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
/*
Navicat Premium Data Transfer

Source Server : 192.168.48.131xzs
Source Server Type : MySQL
Source Server Version : 80022
Source Host : 192.168.48.131:28006
Source Schema : xzs

Target Server Type : MySQL
Target Server Version : 80022
File Encoding : 65001

Date: 07/04/2022 17:24:27
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_exam_paper
-- ----------------------------
DROP TABLE IF EXISTS `t_exam_paper`;
CREATE TABLE `t_exam_paper` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '试卷名称',
`subject_id` int NULL DEFAULT NULL COMMENT '学科',
`paper_type` int NULL DEFAULT NULL COMMENT '试卷类型( 1固定试卷 2临时试卷 3班级试卷 4.时段试卷 5.推送试卷)',
`grade_level` int NULL DEFAULT NULL COMMENT '级别',
`score` int NULL DEFAULT NULL COMMENT '试卷总分(千分制)',
`question_count` int NULL DEFAULT NULL COMMENT '题目数量',
`suggest_time` int NULL DEFAULT NULL COMMENT '建议时长(分钟)',
`limit_start_time` datetime NULL DEFAULT NULL COMMENT '时段试卷 开始时间',
`limit_end_time` datetime NULL DEFAULT NULL COMMENT '时段试卷 结束时间',
`frame_text_content_id` int NULL DEFAULT NULL COMMENT '试卷框架 内容为JSON',
`create_user` int NULL DEFAULT NULL,
`create_time` datetime NULL DEFAULT NULL,
`deleted` bit(1) NULL DEFAULT NULL,
`task_exam_id` int NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_exam_paper
-- ----------------------------
INSERT INTO `t_exam_paper` VALUES (1, 'a', 1, 1, 12, 10, 1, 3, NULL, NULL, 2, 2, '2022-04-07 17:13:04', b'0', NULL);

-- ----------------------------
-- Table structure for t_exam_paper_answer
-- ----------------------------
DROP TABLE IF EXISTS `t_exam_paper_answer`;
CREATE TABLE `t_exam_paper_answer` (
`id` int NOT NULL AUTO_INCREMENT,
`exam_paper_id` int NULL DEFAULT NULL,
`paper_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '试卷名称',
`paper_type` int NULL DEFAULT NULL COMMENT '试卷类型( 1固定试卷 2临时试卷 3班级试卷 4.时段试卷 )',
`subject_id` int NULL DEFAULT NULL COMMENT '学科',
`system_score` int NULL DEFAULT NULL COMMENT '系统判定得分',
`user_score` int NULL DEFAULT NULL COMMENT '最终得分(千分制)',
`paper_score` int NULL DEFAULT NULL COMMENT '试卷总分',
`question_correct` int NULL DEFAULT NULL COMMENT '做对题目数量',
`question_count` int NULL DEFAULT NULL COMMENT '题目总数量',
`do_time` int NULL DEFAULT NULL COMMENT '做题时间(秒)',
`status` int NULL DEFAULT NULL COMMENT '试卷状态(1待判分 2完成)',
`create_user` int NULL DEFAULT NULL COMMENT '学生',
`create_time` datetime NULL DEFAULT NULL COMMENT '提交时间',
`task_exam_id` int NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_exam_paper_answer
-- ----------------------------
INSERT INTO `t_exam_paper_answer` VALUES (1, 1, 'a', 1, 1, 0, 0, 10, 0, 1, 2, 2, 1, '2022-04-07 17:14:56', NULL);

-- ----------------------------
-- Table structure for t_exam_paper_question_customer_answer
-- ----------------------------
DROP TABLE IF EXISTS `t_exam_paper_question_customer_answer`;
CREATE TABLE `t_exam_paper_question_customer_answer` (
`id` int NOT NULL AUTO_INCREMENT,
`question_id` int NULL DEFAULT NULL COMMENT '题目Id',
`exam_paper_id` int NULL DEFAULT NULL COMMENT '答案Id',
`exam_paper_answer_id` int NULL DEFAULT NULL,
`question_type` int NULL DEFAULT NULL COMMENT '题型',
`subject_id` int NULL DEFAULT NULL COMMENT '学科',
`customer_score` int NULL DEFAULT NULL COMMENT '得分',
`question_score` int NULL DEFAULT NULL COMMENT '题目原始分数',
`question_text_content_id` int NULL DEFAULT NULL COMMENT '问题内容',
`answer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '做题答案',
`text_content_id` int NULL DEFAULT NULL COMMENT '做题内容',
`do_right` bit(1) NULL DEFAULT NULL COMMENT '是否正确',
`create_user` int NULL DEFAULT NULL COMMENT '做题人',
`create_time` datetime NULL DEFAULT NULL,
`item_order` int NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_exam_paper_question_customer_answer
-- ----------------------------
INSERT INTO `t_exam_paper_question_customer_answer` VALUES (1, 1, 1, 1, 1, 1, 0, 10, 1, NULL, NULL, b'0', 1, '2022-04-07 17:14:56', 1);

-- ----------------------------
-- Table structure for t_message
-- ----------------------------
DROP TABLE IF EXISTS `t_message`;
CREATE TABLE `t_message` (
`id` int NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
`content` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '内容',
`create_time` datetime NULL DEFAULT NULL,
`send_user_id` int NULL DEFAULT NULL COMMENT '发送者用户ID',
`send_user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送者用户名',
`send_real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送者真实姓名',
`receive_user_count` int NULL DEFAULT NULL COMMENT '接收人数',
`read_count` int NULL DEFAULT NULL COMMENT '已读人数',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_message
-- ----------------------------

-- ----------------------------
-- Table structure for t_message_user
-- ----------------------------
DROP TABLE IF EXISTS `t_message_user`;
CREATE TABLE `t_message_user` (
`id` int NOT NULL AUTO_INCREMENT,
`message_id` int NULL DEFAULT NULL COMMENT '消息内容ID',
`receive_user_id` int NULL DEFAULT NULL COMMENT '接收人ID',
`receive_user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收人用户名',
`receive_real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收人真实姓名',
`readed` bit(1) NULL DEFAULT NULL COMMENT '是否已读',
`create_time` datetime NULL DEFAULT NULL,
`read_time` datetime NULL DEFAULT NULL COMMENT '阅读时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_message_user
-- ----------------------------

-- ----------------------------
-- Table structure for t_question
-- ----------------------------
DROP TABLE IF EXISTS `t_question`;
CREATE TABLE `t_question` (
`id` int NOT NULL AUTO_INCREMENT,
`question_type` int NULL DEFAULT NULL COMMENT '1.单选题 2.多选题 3.判断题 4.填空题 5.简答题',
`subject_id` int NULL DEFAULT NULL COMMENT '学科',
`score` int NULL DEFAULT NULL COMMENT '题目总分(千分制)',
`grade_level` int NULL DEFAULT NULL COMMENT '级别',
`difficult` int NULL DEFAULT NULL COMMENT '题目难度',
`correct` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '正确答案',
`info_text_content_id` int NULL DEFAULT NULL COMMENT '题目 填空、 题干、解析、答案等信息',
`create_user` int NULL DEFAULT NULL COMMENT '创建人',
`status` int NULL DEFAULT NULL COMMENT '1.正常',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`deleted` bit(1) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_question
-- ----------------------------
INSERT INTO `t_question` VALUES (1, 1, 1, 10, 12, 2, 'A', 1, 2, 1, '2022-04-07 17:12:39', b'0');

-- ----------------------------
-- Table structure for t_subject
-- ----------------------------
DROP TABLE IF EXISTS `t_subject`;
CREATE TABLE `t_subject` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语文 数学 英语 等',
`level` int NULL DEFAULT NULL COMMENT '年级 (1-12) 小学 初中 高中 大学',
`level_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '一年级、二年级等',
`item_order` int NULL DEFAULT NULL COMMENT '排序',
`deleted` bit(1) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_subject
-- ----------------------------
INSERT INTO `t_subject` VALUES (1, '高三学科', 12, '高三', NULL, b'0');

-- ----------------------------
-- Table structure for t_task_exam
-- ----------------------------
DROP TABLE IF EXISTS `t_task_exam`;
CREATE TABLE `t_task_exam` (
`id` int NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`grade_level` int NULL DEFAULT NULL COMMENT '级别',
`frame_text_content_id` int NULL DEFAULT NULL COMMENT '任务框架 内容为JSON',
`create_user` int NULL DEFAULT NULL,
`create_time` datetime NULL DEFAULT NULL,
`deleted` bit(1) NULL DEFAULT NULL,
`create_user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_task_exam
-- ----------------------------

-- ----------------------------
-- Table structure for t_task_exam_customer_answer
-- ----------------------------
DROP TABLE IF EXISTS `t_task_exam_customer_answer`;
CREATE TABLE `t_task_exam_customer_answer` (
`id` int NOT NULL AUTO_INCREMENT,
`task_exam_id` int NULL DEFAULT NULL,
`create_user` int NULL DEFAULT NULL,
`create_time` datetime NULL DEFAULT NULL,
`text_content_id` int NULL DEFAULT NULL COMMENT '任务完成情况(Json)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_task_exam_customer_answer
-- ----------------------------

-- ----------------------------
-- Table structure for t_text_content
-- ----------------------------
DROP TABLE IF EXISTS `t_text_content`;
CREATE TABLE `t_text_content` (
`id` int NOT NULL AUTO_INCREMENT,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`create_time` datetime NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_text_content
-- ----------------------------
INSERT INTO `t_text_content` VALUES (1, '{\"titleContent\":\"sssssssss\",\"analyze\":\"aaaaaaaaaa\",\"questionItemObjects\":[{\"prefix\":\"A\",\"content\":\"<p class=\\\"ueditor-p\\\">aaa</p>\",\"score\":null,\"itemUuid\":null},{\"prefix\":\"B\",\"content\":\"<p class=\\\"ueditor-p\\\">b</p>\",\"score\":null,\"itemUuid\":null},{\"prefix\":\"C\",\"content\":\"<p class=\\\"ueditor-p\\\">ccc</p>\",\"score\":null,\"itemUuid\":null},{\"prefix\":\"D\",\"content\":\"<p class=\\\"ueditor-p\\\" style=\\\"text-align: left;\\\">ddd</p>\",\"score\":null,\"itemUuid\":null}],\"correct\":\"A\"}', '2022-04-07 17:12:39');
INSERT INTO `t_text_content` VALUES (2, '[{\"name\":\"aaa\",\"questionItems\":[{\"id\":1,\"itemOrder\":1}]}]', '2022-04-07 17:13:04');

-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` int NOT NULL AUTO_INCREMENT,
`user_uuid` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
`age` int NULL DEFAULT NULL,
`sex` int NULL DEFAULT NULL COMMENT '1.男 2女',
`birth_day` datetime NULL DEFAULT NULL,
`user_level` int NULL DEFAULT NULL COMMENT '学生年级(1-12)',
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`role` int NULL DEFAULT NULL COMMENT '1.学生 2.老师 3.管理员',
`status` int NULL DEFAULT NULL COMMENT '1.启用 2禁用',
`image_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像地址',
`create_time` datetime NULL DEFAULT NULL,
`modify_time` datetime NULL DEFAULT NULL,
`last_active_time` datetime NULL DEFAULT NULL,
`deleted` bit(1) NULL DEFAULT NULL COMMENT '是否删除',
`wx_open_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信openId',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES (1, 'd2d29da2-dcb3-4013-b874-727626236f47', 'student', 'D1AGFL+Gx37t0NPG4d6biYP5Z31cNbwhK5w1lUeiHB2zagqbk8efYfSjYoh1Z/j1dkiRjHU+b0EpwzCh8IGsksJjzD65ci5LsnodQVf4Uj6D3pwoscXGqmkjjpzvSJbx42swwNTA+QoDU8YLo7JhtbUK2X0qCjFGpd+8eJ5BGvk=', '学生', 18, 1, '2019-09-01 16:00:00', 12, '158800882', 1, 1, 'http://xzs.file.mindskip.net/Fp1ogUuzOKPz1FJ_WrlRpAAFTRtX', '2019-09-07 18:55:02', '2020-02-04 08:26:54', NULL, b'0', NULL);
INSERT INTO `t_user` VALUES (2, '52045f5f-a13f-4ccc-93dd-f7ee8270ad4c', 'admin', 'D1AGFL+Gx37t0NPG4d6biYP5Z31cNbwhK5w1lUeiHB2zagqbk8efYfSjYoh1Z/j1dkiRjHU+b0EpwzCh8IGsksJjzD65ci5LsnodQVf4Uj6D3pwoscXGqmkjjpzvSJbx42swwNTA+QoDU8YLo7JhtbUK2X0qCjFGpd+8eJ5BGvk=', '管理员', 30, 1, '2019-09-07 18:56:07', NULL, NULL, 3, 1, NULL, '2019-09-07 18:56:21', NULL, NULL, b'0', NULL);

-- ----------------------------
-- Table structure for t_user_event_log
-- ----------------------------
DROP TABLE IF EXISTS `t_user_event_log`;
CREATE TABLE `t_user_event_log` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int NULL DEFAULT NULL COMMENT '用户id',
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
`real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`create_time` datetime NULL DEFAULT NULL COMMENT '时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_user_event_log
-- ----------------------------
INSERT INTO `t_user_event_log` VALUES (1, 2, 'admin', '管理员', 'admin 登录了学之思考试系统', '2020-11-17 16:01:19');
INSERT INTO `t_user_event_log` VALUES (2, 2, 'admin', '管理员', 'admin 登出了学之思考试系统', '2020-11-17 16:02:43');
INSERT INTO `t_user_event_log` VALUES (3, 2, 'admin', '管理员', 'admin 登录了学之思考试系统', '2020-11-17 16:03:19');
INSERT INTO `t_user_event_log` VALUES (4, 1, 'student', '学生', 'student 登录了学之思考试系统', '2020-11-17 16:36:18');
INSERT INTO `t_user_event_log` VALUES (5, 1, 'student', '学生', 'student 登录了学之思考试系统', '2021-01-29 10:04:37');
INSERT INTO `t_user_event_log` VALUES (6, 2, 'admin', '管理员', 'admin 登录了学之思考试系统', '2021-01-29 10:32:42');
INSERT INTO `t_user_event_log` VALUES (7, 2, 'admin', '管理员', 'admin 登出了学之思考试系统', '2021-01-29 10:32:56');
INSERT INTO `t_user_event_log` VALUES (8, 2, 'admin', '管理员', 'admin 登录了学之思考试系统', '2021-03-17 12:29:46');
INSERT INTO `t_user_event_log` VALUES (9, 2, 'admin', '管理员', 'admin 登出了学之思考试系统', '2021-03-17 12:31:37');
INSERT INTO `t_user_event_log` VALUES (10, 2, 'admin', '管理员', 'admin 登录了学之思考试系统', '2021-03-17 12:31:44');
INSERT INTO `t_user_event_log` VALUES (11, 2, 'admin', '管理员', 'admin 登出了学之思考试系统', '2021-03-17 12:48:18');
INSERT INTO `t_user_event_log` VALUES (12, 1, 'student', '学生', 'student 登录了学之思考试系统', '2021-03-17 12:48:34');
INSERT INTO `t_user_event_log` VALUES (13, 1, 'student', '学生', 'student 登出了学之思考试系统', '2021-03-17 12:49:09');
INSERT INTO `t_user_event_log` VALUES (14, 1, 'student', '学生', 'student 登录了学之思开源考试系统', '2022-04-07 17:14:51');
INSERT INTO `t_user_event_log` VALUES (15, 1, 'student', '学生', 'student 提交试卷:a 得分:0 耗时:2 秒', '2022-04-07 17:14:56');
INSERT INTO `t_user_event_log` VALUES (16, 2, 'admin', '管理员', 'admin 登录了学之思开源考试系统', '2022-04-07 17:17:10');

-- ----------------------------
-- Table structure for t_user_token
-- ----------------------------
DROP TABLE IF EXISTS `t_user_token`;
CREATE TABLE `t_user_token` (
`id` int NOT NULL AUTO_INCREMENT,
`token` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_id` int NULL DEFAULT NULL COMMENT '用户Id',
`wx_open_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信openId',
`create_time` datetime NULL DEFAULT NULL,
`end_time` datetime NULL DEFAULT NULL,
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = COMPACT;

-- ----------------------------
-- Records of t_user_token
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;

一辈子很短,努力的做好两件事就好:
第一件事是热爱生活,好好的去爱身边的人;
第二件事是努力学习,在工作中取得不一样的成绩,实现自己的价值,而不是仅仅为了赚钱。

继开 wechat
欢迎加我的微信,共同交流技术